import pandas as pd


# 定义函数，用于去掉换行符
def remove_newline(value):
    return value.replace('\n', '')


if __name__ == '__main__':
    df = pd.read_csv("/Users/chuckfang/Documents/零犀/知识库：问题和答案.csv")
    # df.applymap(remove_newline)
    res = df.dropna(axis='columns', how="all").dropna(axis='rows', how="all")
    res.to_csv(r"../raw_data/知识库：问题和答案1.csv", index=False)
    print("done")
